import request from '@/utils/request'

// 查询总仓库列表
export function listWareWarehouseTotal(query) {
  return request({
    url: '/warehouse/WareWarehouseTotal/list',
    method: 'get',
    params: query
  })
}

// 查询总仓库详细
export function getWareWarehouseTotal(id) {
  return request({
    url: '/warehouse/WareWarehouseTotal/' + id,
    method: 'get'
  })
}

// 新增总仓库
export function addWareWarehouseTotal(data) {
  return request({
    url: '/warehouse/WareWarehouseTotal',
    method: 'post',
    data: data
  })
}

// 修改总仓库
export function updateWareWarehouseTotal(data) {
  return request({
    url: '/warehouse/WareWarehouseTotal',
    method: 'put',
    data: data
  })
}

// 删除总仓库
export function delWareWarehouseTotal(id) {
  return request({
    url: '/warehouse/WareWarehouseTotal/' + id,
    method: 'delete'
  })
}
